<script lang="ts" setup>

interface TextIconProps {
    color?: string
    size?: number
    direction?: 'horizontal' | 'vertical'
    iconProps?: any
}

withDefaults(defineProps<TextIconProps>(), {
    size: 10,
    direction: 'vertical'
})

</script>

<template>
    <umrp-space :direction="direction" :size="size" align="center">
        <umrp-icon v-bind="iconProps"></umrp-icon>
        <umrp-text>
            <slot></slot>
        </umrp-text>
    </umrp-space>
</template>